<div class="pets container">
	
	<h2><?php echo __d('admin', 'Pets'); ?></h2>
	
	<?php echo $this->Html->link(__d('admin', 'Create'), array('action' => 'create'), array('class' => 'btn btn-primary')); ?>
	
	
	<?php if( $pets ): ?>
	<div class="grid pet-grid row">
		<?php foreach($pets as $pet): ?>
		<div class="col-lg-3 col-md-3 col-sm-4 col-xs-6">
			<div class="item text-center">
				<a href="<?php echo $this->Html->url( array('action' => 'view', $pet['Pet']['id']) ); ?>" title="<?php echo $pet['Pet']['name']; ?>">
				<?php if( $pet['Picture'] ): ?>
				<img src="<?php echo $pet['Picture']['thumb']; ?>" class="img-thumbnail" alt="<?php echo $pet['Product']['name']; ?>" />
				<?php else: ?>
				<img src="<?php echo $this->Html->url("/pictures/products/default.png"); ?>" class="img-thumbnail" alt="<?php echo $pet['Pet']['name']; ?>" />
				<?php endif; ?>
				<div class="grid-title nowrap"><?php echo h($pet['Pet']['name']); ?></div>
				</a>
			</div>
		</div>
		<?php endforeach; ?>
	</div>
	<?php else: ?>
	<div class="alert alert-info"><?php echo __d('admin', 'Nothing to show here!'); ?></div>
	<?php endif; ?>
	
</div>
